package kr.hkit.androidcomplete02.ch15;

import kr.hkit.androidcomplete02.R;
import android.app.Activity;
import android.app.AlertDialog;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

public class MultiLangEx extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch15_multilang);
		
	}
	
	public void mOnClick(View v){
		switch(v.getId()){
		case R.id.btnpress:
			Toast.makeText(this, R.string.multi_toasttext, 0).show();
			break;
			
		case R.id.btnsmile:
			String text = getResources().getString(R.string.multi_smiletext);
			new AlertDialog.Builder(this)
			.setMessage(text)
			.setTitle("Alert")
			.show();
			break;
		}
	}
}
